package com.csdj.service.impl;

import com.csdj.dao.DeptDao;
import com.csdj.dao.impl.DeptDaoImpl;
import com.csdj.entity.Department;
import com.csdj.service.DeptService;

import java.util.List;

/**
 * packageName com.csdj.service.impl
 *
 * @author winver
 * @version 1.0
 * @className DeptServiceImpl
 * @date 2024/11/27
 * @description TODO
 */

public class DeptServiceImpl implements DeptService {

    //数据访问层对象
    DeptDao deptDao = new DeptDaoImpl();

    @Override
    public List<Department> findAllDepts() {
        return deptDao.getAllDept();
    }
}
